package cn.iocoder.yudao.module.cms.keyword.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Tag(name = "搜索词新增/修改 Request VO")
@Data
public class KeywordSaveReqVO {

    @Schema(description = "关键词类型：default、article、feedback、issue、……", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "关键词类型不能为空")
    private String type;

    @Schema(description = "关键词内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "关键词内容不能为空")
    @Length(max = 255, message = "关键词内容长度不能超过 255")
    private String content;

    @Schema(description = "跳转链接", example = "/mall/product/search?keyword={}")
    private String url;

}
